namespace SimpleWebServices.Configuration
{
    using System.Diagnostics.CodeAnalysis;
    using System.Xml.Serialization;

    [XmlRoot("repository")]
    public sealed class RepositorySetting
    {
        [XmlAttribute("key")]
        public string Key
        {
            get;
            set;
        }

        [SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Justification = "Uri doesn't support XML serialization.")]
        [XmlAttribute("urn")]
        public string Urn
        {
            get;
            set;
        }

        [XmlText]
        public string Value
        {
            get;
            set;
        }
    }
}